<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/style_destFilter/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/style_destFilter/styles/destfilter.css" rel="stylesheet" type="text/css">
    <link href="/js/plugins/jqPaginator/jqPagination.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/style_destFilter/js/jquery.js"></script>
    <script type="text/javascript" src="/style_destFilter/js/destfilter.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script type="text/javascript" src="/js/plugins/jqPaginator/jq-paginator.min.js"></script>
    <script type="text/javascript" src="/style_destFilter/js/common.js"></script>
</head>

<body>
    <#assign currentNav="destination">
    <#include "../common/navbar.ftl">
    <div class="container">
        <div class="row-top">
            <div class="wrapper">
                <div class="top-bar">
                    <div class="crumb">
                        <div class="item"><a href="javascript:;" target="_blank">目的地</a><em>&gt;</em></div>
                        <div class="item cur">目的地筛选</div>
                    </div>
                </div>
                <div class="filter-title">目的地筛选</div>
                <form id="searchForm" action="/destFilterPage" method="post">
                    <input type="hidden" id="viewMonth" name="viewMonth" value="-1">
                    <input type="hidden" id="themeId" name="themeId" value="-1">
                    <input type="hidden" id="dayType" name="dayType" value="-1">
                    <input type="hidden" id="currentPage" name="currentPage" value="1">
                </form>
                <script>
                    $(function () {
                        $("#searchForm").ajaxForm(function (data) {
                            $(".mydestData").html(data);
                        });

                        //月份
                        $('.monthNum').click(function () {
                            $('.month a').removeClass('on');
                            $(this).addClass('on');
                            var viewMonth = $(this).data('month');
                            $('#viewMonth').val(viewMonth);
                            $("#searchForm").submit();
                        });


                        //主题
                        $('.destTheme').click(function () {
                            $('.destTheme').removeClass('on');
                            $(this).addClass('on');
                            //var themeId = $(this).data('destThemeId');
                            var themeId = $(this).attr('data-destThemeId');
                            $('#themeId').val(themeId);

                            $("#searchForm").submit();
                        });

                        //天数范围
                        $('.dateRange').click(function () {
                            $('.dateRange').removeClass('on');
                            $(this).addClass('on');
                            var type = $(this).data('type');
                            $('#dayType').val(type);
                            $("#searchForm").submit();
                        });

                        //选中回显
                        if (${qo.themeId}){
                            $('.destTheme').removeClass('on');
                            $('.add${qo.themeId!}').addClass('on');
                        }
                        if (${qo.viewMonth}){
                            $('.monthNum').removeClass('on');
                            $('.mon${qo.viewMonth!}').addClass('on');
                        }

                    });
                </script>
                <div class="filter-nav">
                    <dl class="clearfix">
                        <dt>时间</dt>
                        <dd class="J_dd">
                            <div class="month clearfix">
                                <a href="javascript:void(0)" class="on monthNum mon-1" data-month="-1">不限</a>
                                <a href="javascript:void(0)" class="monthNum mon1" data-month="1">1月</a>
                                <a href="javascript:void(0)" class="monthNum mon2" data-month="2">2月</a>
                                <a href="javascript:void(0)" class="monthNum mon3" data-month="3">3月</a>
                                <a href="javascript:void(0)" class="monthNum mon4" data-month="4">4月</a>
                                <a href="javascript:void(0)" class="monthNum mon5" data-month="5">5月</a>
                                <a href="javascript:void(0)" class="monthNum mon6" data-month="6">6月</a>
                                <a href="javascript:void(0)" class="monthNum mon7" data-month="7">7月</a>
                                <a href="javascript:void(0)" class="monthNum mon8" data-month="8">8月</a>
                                <a href="javascript:void(0)" class="monthNum mon9" data-month="9">9月</a>
                                <a href="javascript:void(0)" class="monthNum mon10" data-month="10">10月</a>
                                <a href="javascript:void(0)" class="monthNum mon11" data-month="11">11月</a>
                                <a href="javascript:void(0)" class="monthNum mon12" data-month="12">12月</a>
                            </div>
                        </dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>主题</dt>
                        <dd class="J_dd">
                            <a class="on destTheme add-1" href="javascript:void(0)" data-destThemeId="-1">不限</a>
                            <div class="sub-nav">
                                <dl class="clearfix">
                                    <dt>全年适宜：</dt>
                                    <#list allyear as a>
                                        <dd>
                                            <a href="javascript:void(0)" class="destTheme add${a.id!}" data-destThemeId="${a.id!}">${a.name!}</a>
                                        </dd>
                                    </#list>
                                </dl>
                                <dl class="clearfix">
                                    <dt>季节：</dt>
                                    <#list season as s>
                                        <dd>
                                            <a href="javascript:void(0)" class="destTheme add${s.id!}" data-destThemeId="${s.id!}">${s.name!}</a>
                                        </dd>
                                    </#list>
                                </dl>
                                <dl class="clearfix">
                                    <dt>出行方式：</dt>
                                    <#list way as w>
                                        <dd>
                                            <a href="javascript:void(0)" class="destTheme add${w.id!}" data-destThemeId="${w.id!}">${w.name!}</a>
                                        </dd>
                                    </#list>
                                </dl>
                                <dl class="clearfix">
                                    <dt>节假日：</dt>
                                    <#list holiday as h>
                                        <dd>
                                            <a href="javascript:void(0)" class="destTheme add${h.id!}" data-destThemeId="${h.id!}">${h.name!}</a>
                                        </dd>
                                    </#list>
                                </dl>
                            </div>
                        </dd>
                    </dl>
                    <dl class="clearfix">
                        <dt>天数</dt>
                        <dd class="J_dd">
                            <a class="on dateRange" href="javascript:void(0)" data-type="-1">不限</a>
                            <a href="javascript:void(0)" class="dateRange" data-type="1">2-3天</a>
                            <a href="javascript:void(0)" class="dateRange" data-type="2">4-5天</a>
                            <a href="javascript:void(0)" class="dateRange" data-type="3">6-9天</a>
                            <a href="javascript:void(0)" class="dateRange" data-type="4">10天及以上</a>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
        <div class="row-list">
            <div class="wrapper mydestData">
                <#--内容-->
                    <ul class="clearfix ">
                        <#list pageInfo.list as d>
                            <li class="item">
                                <div class="img">
                                    <a href="/destination/guide?id=${d.id!}" target="_blank"><img height="200" width="320" src="${d.coverUrl!}" style="display: inline;">
                                        <div class="title">${d.name!}</div>
                                    </a>
                                </div>
                                <div class="info">
                                    <p class="detail">${d.info!'暂无相关简介与介绍!'}</p>
                                    <div class="hot">
                                        <span class="label">TOP3</span>
                                        <#list d.scenicSpots as sc>
                                            <a href="/destination/scenicspotlist?destId=${d.id}" target="_blank">${sc.title}</a>
                                        </#list>
                                    </div>

                                    <div class="line"><a href="/destination/guide?id=${d.id!}" target="_blank"><em>1</em>${d.name!}${d.days!}日游线路</a></div>
                                </div>
                            </li>
                        </#list>
                    </ul>
                    <#include "../common/page.ftl">
            </div>
        </div>
    </div>
    <#include "../common/footer.ftl">
    <div class="mfw-toolbar" id="_j_mfwtoolbar" style="display: block;">
        <div class="toolbar-item-top" style="display: none;">
            <a role="button" class="btn _j_gotop">
                <i class="icon_top"></i>
                <em>返回顶部</em>
            </a>
        </div>
        <div class="toolbar-item-feedback">
            <a role="button" data-japp="feedback" class="btn">
                <i class="icon_feedback"></i>
                <em>意见反馈</em>
            </a>
        </div>
        <div class="toolbar-item-code">
            <a role="button" class="btn">
                <i class="icon_code"></i>
            </a>
            <a role="button" class="mfw-code _j_code">


                <img src="https://p1-q.mafengwo.net/s1/M00/6C/51/wKgIC1t_6TuASybrAADGUPUHjr021.jpeg?imageMogr2%2Fthumbnail%2F%21450x192r%2Fgravity%2FCenter%2Fcrop%2F%21450x192%2Fquality%2F90"
                    width="450" height="192">
            </a>
            <!--<div class="wx-official-pop"><img src="http://images.mafengwo.net/images/qrcode-weixin.gif"><i class="_j_closeqrcode"></i></div>-->
        </div>

    </div>
</body>

</html>